게재 할당
게재 할당 단건 조회 (no)
고유 식별자(no)로 단일 게재 할당을 조회합니다.
GET
/
api
/
manager
/
allocations
/
{no}
게재 할당 단건 조회 (no)
curl --request GET \
--url https://your_a2_service/api/manager/allocations/{no} \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/api/manager/allocations/{no}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/api/manager/allocations/{no}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/api/manager/allocations/{no}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/manager/allocations/{no}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your_a2_service/api/manager/allocations/{no}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/allocations/{no}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rtype": "line_item",
"tid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ttype": "ad_unit",
"updated_at": "2023-11-07T05:31:56Z",
"ext": {
"ad_log_tracking_mode": "on_ad_response",
"deferred_native_rendering": false,
"deferred_native_template": "",
"frequency_capping": {
"enabled": 0,
"limit_multiple_click": 0,
"limit_user_impression": [
{
"limit_count": 0,
"num_time_units": 0,
"time_unit": "day"
}
]
},
"supported_environments": [
"web",
"app"
]
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_comment": "",
"line_item_end_date": "2023-11-07T05:31:56Z",
"line_item_name": "<string>",
"line_item_oid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_item_start_date": "2023-11-07T05:31:56Z",
"line_item_status": "<string>",
"no": 0,
"owner_name": "<string>",
"status": "pending",
"target_ext": {
"algorithm": "axa0",
"approval_method": "admin",
"bcat": [],
"default_cpa": 0,
"default_cpc": 0,
"display": {
"enabled": 0
},
"external_raw_data": "<unknown>",
"implicit_app_inference": {
"android_bundle": "<string>",
"app_name": "<string>",
"cat": [
"<string>"
],
"ios_bundle": "<string>",
"ua_keywords": []
},
"metric_mode": "all",
"native": {
"enabled": 0,
"render_mode": "html"
},
"passback": "<unknown>",
"payout": "rates",
"public_url": "<string>",
"publisher": "<unknown>",
"recommendation": {
"enabled": 0
},
"responsive": "fixed",
"target_ecpm": 0,
"target_service": "<string>",
"video": {
"enabled": 0
}
},
"target_name": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}인증
Bearer 인증. 액세스 토큰을 Authorization: Bearer <token> 헤더로 전달합니다.
경로 매개변수
응답
성공 응답
게재 할당 조회 응답 스키마 — 보강된 이름 필드 포함.
소유자 ID
리소스 ID (line_items.id 또는 recommendation_policies.id)
타깃에 배정된 리소스 유형 (line_item / recommendation_policy)
사용 가능한 옵션:
line_item, recommendation_policy 대상 ID (ad_units.id 또는 placements.id)
대상 유형 (ad_unit / placement)
사용 가능한 옵션:
ad_unit, placement 다양한 설정용
Show child attributes
Show child attributes
마지막 코멘트
광고 항목의 종료일
광고 항목의 이름
광고 항목의 주문 ID
광고 항목의 시작일
광고 항목 상태
게재 할당 ID
게재 할당 소유자 이름
게재 할당의 현재 상태 (예: pending, published, rejected)
사용 가능한 옵션:
pending, requested, published, rejected, canceled, finished 대상의 ext (ad_unit만 해당)
Show child attributes
Show child attributes
대상 이름 (광고 단위 또는 게재 위치)
이 페이지가 도움이 되었나요?
⌘I
게재 할당 단건 조회 (no)
curl --request GET \
--url https://your_a2_service/api/manager/allocations/{no} \
--header 'Authorization: Bearer <token>'import requests
url = "https://your_a2_service/api/manager/allocations/{no}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your_a2_service/api/manager/allocations/{no}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your_a2_service/api/manager/allocations/{no}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your_a2_service/api/manager/allocations/{no}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your_a2_service/api/manager/allocations/{no}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your_a2_service/api/manager/allocations/{no}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rtype": "line_item",
"tid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ttype": "ad_unit",
"updated_at": "2023-11-07T05:31:56Z",
"ext": {
"ad_log_tracking_mode": "on_ad_response",
"deferred_native_rendering": false,
"deferred_native_template": "",
"frequency_capping": {
"enabled": 0,
"limit_multiple_click": 0,
"limit_user_impression": [
{
"limit_count": 0,
"num_time_units": 0,
"time_unit": "day"
}
]
},
"supported_environments": [
"web",
"app"
]
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_comment": "",
"line_item_end_date": "2023-11-07T05:31:56Z",
"line_item_name": "<string>",
"line_item_oid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"line_item_start_date": "2023-11-07T05:31:56Z",
"line_item_status": "<string>",
"no": 0,
"owner_name": "<string>",
"status": "pending",
"target_ext": {
"algorithm": "axa0",
"approval_method": "admin",
"bcat": [],
"default_cpa": 0,
"default_cpc": 0,
"display": {
"enabled": 0
},
"external_raw_data": "<unknown>",
"implicit_app_inference": {
"android_bundle": "<string>",
"app_name": "<string>",
"cat": [
"<string>"
],
"ios_bundle": "<string>",
"ua_keywords": []
},
"metric_mode": "all",
"native": {
"enabled": 0,
"render_mode": "html"
},
"passback": "<unknown>",
"payout": "rates",
"public_url": "<string>",
"publisher": "<unknown>",
"recommendation": {
"enabled": 0
},
"responsive": "fixed",
"target_ecpm": 0,
"target_service": "<string>",
"video": {
"enabled": 0
}
},
"target_name": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}